<template>
  <div class="effect">
    <!-- <div class="ju-title">
      <span>绩效管理成效</span>
    </div> -->
    <div class="box-analysis-proportion">
      <div class="analysis usual-box">
        <AnalysisData v-bind="$attrs"></AnalysisData>
      </div>
      <div class="proportion usual-box">
        <ProportionData v-bind="$attrs"></ProportionData>
      </div>
    </div>
  </div>
</template>

<script>
import AnalysisData from './AnalysisData.vue'
import ProportionData from './ProportionData.vue'
export default {
  name: 'JxEffect',
  components: { AnalysisData, ProportionData },
  props: {
    grainData: {
      type: Object,
      default: () => {},
    },
  },
  data() {
    return {
      progressDatas: [],
      analysisDatas: {},
      proportionDatas: {},
    }
  },
  computed: {},
  watch: {
    grainData: {
      handler(news) {
        this.pageInt()
      },
      deep: true,
      // immediate: true,
    },
  },
  created() {},
  mounted() {
    this.pageInt()
  },
  methods: {
    pageInt() {},
  },
}
</script>

<style lang="scss" scoped>
@import './title.scss';

.effect {
  margin-top: 20px;

  .box-progress {
    margin-top: 10px;
    padding: 20px;
  }

  .box-analysis-proportion {
    margin-top: 30px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;

    .analysis {
      width: 42.5%;
      padding: 20px;
    }

    .proportion {
      width: 55%;
      padding: 20px;
    }
  }
}
</style>
